package cn.edu.hgu.bean;

import java.util.Date;

/**
 * GovAccountInfo entity. @author MyEclipse Persistence Tools
 */

public class GovAccountInfo implements java.io.Serializable {
	// Fields
	private Integer id;
	//private Integer govId;//单位id
	//private Integer roleId;//角色id
	private String username;//账号
	private String password;//登录密码
	private String realname;//真实姓名
	private Integer loginTimes; //登录次数
	private Date lotinTime;     //最后一次登录时间
	private String loginIp;     //最后一次登录IP
	private String questionTitle;  //密码问题
	private String questionAnswer; //密码答案
	private Date regTime;          //注册时间
	private String remark;         //备注
	private Integer lockStatus;    //锁定状态,0:开放,1:锁定
	private GovRoleInfo govRole;
	private GovernmentInfo governmentInfo;
	// Constructors

	/** default constructor */
	public GovAccountInfo() {
	}

	/** full constructor */
	public GovAccountInfo(Integer govId, Integer roleId, String username,
			String password, String realname, Integer loginTimes,
			Date lotinTime, String loginIp, String questionTitle,
			String questionAnswer, Date regTime, String remark,
			Integer lockStatus) {
		//this.govId = govId;
		//this.roleId = roleId;
		this.username = username;
		this.password = password;
		this.realname = realname;
		this.loginTimes = loginTimes;
		this.lotinTime = lotinTime;
		this.loginIp = loginIp;
		this.questionTitle = questionTitle;
		this.questionAnswer = questionAnswer;
		this.regTime = regTime;
		this.remark = remark;
		this.lockStatus = lockStatus;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	/*public Integer getGovId() {
		return this.govId;
	}

	public void setGovId(Integer govId) {
		this.govId = govId;
	}*/

	/*public Integer getRoleId() {
		return this.roleId;
	}

	public void setRoleId(Integer roleId) {
		this.roleId = roleId;
	}*/

	public String getUsername() {
		return this.username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return this.password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getRealname() {
		return this.realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

	public Integer getLoginTimes() {
		return this.loginTimes;
	}

	public void setLoginTimes(Integer loginTimes) {
		this.loginTimes = loginTimes;
	}

	public Date getLotinTime() {
		return this.lotinTime;
	}

	public void setLotinTime(Date lotinTime) {
		this.lotinTime = lotinTime;
	}

	public String getLoginIp() {
		return this.loginIp;
	}

	public void setLoginIp(String loginIp) {
		this.loginIp = loginIp;
	}

	public String getQuestionTitle() {
		return this.questionTitle;
	}

	public void setQuestionTitle(String questionTitle) {
		this.questionTitle = questionTitle;
	}

	public String getQuestionAnswer() {
		return this.questionAnswer;
	}

	public void setQuestionAnswer(String questionAnswer) {
		this.questionAnswer = questionAnswer;
	}

	public Date getRegTime() {
		return this.regTime;
	}

	public void setRegTime(Date regTime) {
		this.regTime = regTime;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getLockStatus() {
		return this.lockStatus;
	}

	public void setLockStatus(Integer lockStatus) {
		this.lockStatus = lockStatus;
	}
	public GovRoleInfo getGovRole() {
		return govRole;
	}

	public void setGovRole(GovRoleInfo govRole) {
		this.govRole = govRole;
	}

	public GovernmentInfo getGovernmentInfo() {
		return governmentInfo;
	}

	public void setGovernmentInfo(GovernmentInfo governmentInfo) {
		this.governmentInfo = governmentInfo;
	}
	
}